package com.xiaoq.sites.repository;

import java.util.List;

import com.xiaoq.sites.entity.SitesAnnouncementEntity;
import com.xiaoq.vo.PagingVo;

public interface IAnnouncementRepository {
	public List<SitesAnnouncementEntity> findAnnBySites(PagingVo pvo,
			String sitesId);
	
	public List<SitesAnnouncementEntity> findAnnByCity(PagingVo pvo,String zoneCity,String zoneDistrict);
	
	public boolean addSitesAnnouncement(SitesAnnouncementEntity sitesAnnouncementEntity);
	
	public boolean delSitesAnnoment(String annId);
	/**
	 * 使公告失效
	 * @param annId
	 * @return
	 */
	public boolean invalSitesAnnounment(String annId);
	/**
	 * 修改公告内容
	 * @param sitesAnnouncementEntity
	 * @return
	 */
	public boolean editeSitesAnnounment(SitesAnnouncementEntity sitesAnnouncementEntity);
	
	/**
	 * 根据公告Id获取公告详情
	 * @param announId
	 * @return
	 */
	public SitesAnnouncementEntity getSitesAnnounce(String id);
}
